package Demo06;
/*
根据要求，获取随机数字，范围[1,n],两边都可以取到。
 */

import java.util.Random;

public class Demo03Random {
    public static void main(String[] args) {
        int n = 5;
        Random r = new Random();
        for (int i = 0; i <= 50; ++i){
            int t = r.nextInt(5) + 1;
            System.out.print(t + ", ");
        }
    }
}
